import axios from '@/utils/axios'

//查询专业信息
export function queryProfessionAPI() {
    return axios.post(`/api/sys/sys-client/cms/professionInfo/queryprofession`,{},{
        headers: {
            'Content-Type': 'application/json'
        }
    })
}

//编辑专业信息
export function updateProfessionAPI(data) {
    return axios.post(`/api/sys/sys-client/cms/professionInfo/updateprofession`,data,{
        headers: {
            'Content-Type': 'application/json'
        }
    })
}

//删除专业信息
export function deleteProfessionAPI(id) {
    return axios.post(`/api/sys/sys-client/cms/professionInfo/deleteprofession?id=${id}`,{},{
        headers: {
            'Content-Type': 'application/json'
        }
    })
}

//新增专业信息
export function addProfessionAPI(data) {
    return axios.post(`/api/sys/sys-client/cms/professionInfo/addprofession`,data,{
        headers: {
            'Content-Type': 'application/json'
        }
    })
}